const mongoose = require('mongoose');

mongoose.connect("mongodb://RetailBackground:quzong666@101.42.5.234:27017/RetailBackground")

const conn = mongoose.connection;

conn.on('connected', () => {
    console.log('数据库连接成功');
})

conn.on('error', (err) => {
    console.log('数据库连接失败');
})
0
module.exports = mongoose;